﻿using JinfuyuanProject.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JinfuyuanProject.Repository.Interface
{
    public interface ISalaryRepository
    {
        IQueryable<Salary> GetList();

        Salary GetModel(int Id);

        bool Delete(Salary Salary);

        int Insert(Salary Salary);

        bool Update(Salary Salary);
        Task<List<Salary>> GetSalariesAsync(DateTime startDate, DateTime endDate);
        Task SaveSalaryAsync(Salary salary);
    }
}
